package com.example.mappers;

import com.example.entity.Category;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CategoryMapper {

    public List<Category> GetAllCategory();
    public Category GetCategoryById(Integer category_id);
    public Category GetCategoryByCategoryName(String category_name);
    public List<Category> GetCategoryByCategoryType(String category_type,@Param("currentNumber") int currentNumber, @Param("pageNumber")int pageNumber);
    public List<Category> GetCategoryByArmyId(Integer army_id);
    public void AddCategory(Category Category);
    public void ModifyCategory(Category Category);

}
